<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="format-detection" content="telephone=no" />
    <meta content="email=no" name="format-detection" />
    <meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL"/>
    <meta name="HandheldFriendly" content="true">
    <link rel="stylesheet" href="./css/bootstrap.css">
    <link rel="stylesheet" href="./css/bootstrap-theme.css">
    <link rel="stylesheet" href="./css/font-awesome.min.css">
    <link rel="stylesheet" href="./styles/common.css">
    <link rel="stylesheet" href="./styles/contact.css">
    <script src="./js/jquery-3.0.0.js"></script>
    <script src="./js/bootstrap.js"></script>
    <script src="./js/jquery.event.swipe.js"></script>
    <title>Title</title>
</head>
<body ms-controller="contact" ms-css="@bodycss">
    <ms-head></ms-head>

    <div class="main">

    </div>

    <ms-footer></ms-footer>
    <ms-leftnav></ms-leftnav>
    <ms-rightnav></ms-rightnav>
    <ms-backdrop></ms-backdrop>
</body>
<script src="./js/avalon.modern.js"></script>
<script src="./scripts/common.js"></script>
<script src="./scripts/commonwidget.js"></script>
<script src="./js/mmRequest.modern.js"></script>
<script>
    $(function () {
        vm = avalon.define({
           $id : 'contact',
           bodycss : {}
        });
        avalon.scan(document.body)
        var bodycss = {};
        bodycss['width'] = $(window).innerWidth();
        bodycss['height'] = $(window).innerHeight();
        vm.bodycss = bodycss;


        var reqobj = {
            url : 'http://47.93.59.58/index',
            type : 'GET',
            dataType : 'json',
            header : { 'Content-type':'application/json' },
            data : vm.$model,
            success : function (e) {
                console.log(e);
            },
            error : function (error) {
                console.log(error);
            }
        };
        avalon.ajax(reqobj);

        /**
         * avalon.param 将对象转成url请求参数
         * avalon.unparam 将url 参数 转为 对象
         */

    })
</script>
</html>